
Page({
  data: {

  },
  onLoad: function (options) {
    wx.login({
      success(res) {
        wx.request({
          url: 'http://localhost/WXServer/public/auth/Login/check',
          data: {
            code: res.code
          },
          success(res) {
            wx.setStorageSync('token', res.data.data)
          }
        })
      }
    })
  },

  onShow: function () {

  },
})